﻿using Core;
using Core.Domain.Seo;
using System;
using System.Collections.Generic;
using System.Linq;

namespace Services.Seo
{
    public partial interface IFriendlyLinkService
    {
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="entity"></param>
        void DeleteFriendlyLink(FriendlyLink entity);

        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="entity"></param>
        void InsertFriendlyLink(FriendlyLink entity);

        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="entity"></param>
        void UpdateFriendlyLink(FriendlyLink entity);

        /// <summary>
        /// 根据主键获取实体
        /// </summary>
        /// <param name="friendlyLinkId"></param>
        /// <returns></returns>
        FriendlyLink GetFriendlyLinkById(int friendlyLinkId);

        /// <summary>
        /// 获取所有友情链接
        /// </summary>        
        IList<FriendlyLink> GetFriendlyLinks(bool? active = true, bool? top = false);

        /// <summary>
        /// 获取所有友情链接 分页
        /// </summary>
        /// <returns></returns>
        IPagedList<FriendlyLink> GetFriendlyLinks(string name = "", bool? active = true, bool? top = true, int pageIndex = 0, int pageSize = int.MaxValue);
    }
}
